sed -n '8,12p' yourfile # Will send lines 8 through 12 of yourfile to standard out. # For example: cat file-to-cut.txt | sed -n '26,142p' >> new-file.txt